<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8"/>
  <title>Replace javascript: links</title>
</head>
<body>  
  <a href="javascript:">
      <p>abc</p>
      <p>def</p>
      ghi
    </a>
</body>
</html>